#ifndef _CVELOCITY_H_
#define _CVELOCITY_H_

#include "GameComponentTemplate.h"
#include "Ogre.h"

using namespace Ogre;

class GameComponent;

class CVelocityTemplate : public GameComponentTemplate {
public:

	static Ogre::Real Velocity;
	
	CVelocityTemplate();
	~CVelocityTemplate();

	virtual const comp_id_type& componentID() const {
		return mComponentID;
	}
	virtual const comp_id_type& familyID() const {
		return mFamilyID;
	}

	virtual GameComponent *makeComponent();

private:
	static comp_id_type mComponentID;
	static comp_id_type mFamilyID;
};

class CVelocity : public GameComponent {
public:
	
	static Ogre::Real Velocity;

	CVelocity();
	CVelocity(CVelocityTemplate* ct);
	
	~CVelocity();

	void update();
	void setup();

	virtual const comp_id_type& familyID() const { return mFamilyID; }
	virtual const comp_id_type& componentID() const { return mComponentID; }
private:
	static comp_id_type mFamilyID;
	static comp_id_type mComponentID;
};


#endif
